package com.refusea.train.domain.ex

/**
 * @author Zhang Yan 2024/3/22
 **/
class BizEx(message: String) : RuntimeException(message) {
    companion object {
        fun of(message: String): BizEx {
            return BizEx(message)
        }

        val SCHOOL_ERROR = BizEx("学校信息异常，请重新登录")
        val BAD_REQUEST = BizEx("参数异常")
    }
}
